#!/bin/bash
echo "开始安装依赖"
npm install
if [ $? -eq 0 ]; then
    echo "依赖安装成功"
else
    echo "依赖安装失败"
    exit 1
fi
echo "开始构建"
npm run make
if [ $? -eq 0 ]; then
    echo "编译打包成功"
else
    echo "编译打包失败"
    exit 1
fi
echo "退出构建"